package com.superpai.request.user;

import java.util.TreeMap;
import com.superpai.common.Constants;
import com.superpai.request.PaiPaiRequest;
import com.superpai.response.user.GetReceiverAddressListResponse;
import com.superpai.utils.ParameterUtils;

/**
 * @author Devin.Hu
 * @date 2011-9-24
 * @version V1.0
 * @description
 */
public class GetReceiverAddressListRequest implements PaiPaiRequest<GetReceiverAddressListResponse> {

	/** string 回调函数前缀，可改变json输出格式时的回调函数名称,默认值为对应action的名称 **/
	private String callback;
	/** number 买家QQ号码 **/
	private int buyerUin;

	public String getCallback() {
		return callback;
	}

	public void setCallback(String callback) {
		this.callback = callback;
	}

	public int getBuyerUin() {
		return buyerUin;
	}

	public void setBuyerUin(int buyerUin) {
		this.buyerUin = buyerUin;
	}

	@Override
	public String getApiMethodName() {
		return Constants.user_getReceiverAddressList_method;
	}

	@Override
	public TreeMap<String, String> getTextParams(ParameterUtils paramUtils) throws Exception {
		paramUtils.addStringParam("buyerUin", buyerUin);
		return paramUtils.getParamsMap();
	}

	@Override
	public Class<GetReceiverAddressListResponse> getResponseClass() {
		return GetReceiverAddressListResponse.class;
	}

}
